package org.example.service02.openFeign;

import org.example.service02.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "service01")
public interface OpenFeignClient {

    @RequestMapping("/service01/test01")
    public abstract String test01();

    @GetMapping("/test05")
    public abstract String test05(@RequestParam("name") String name, @RequestParam("ids") Integer[] ids, @RequestParam("habbits") List<String> habbits);

    @PostMapping("/test06")
    public abstract String test06(@RequestBody User user);
}
